﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OSGeo.MapGuide
{
    /// <summary>
    /// Represents a feature data access interface to a single feature source. Data coming in and out of this repository
    /// is in the form of weakly-typed property collections.
    /// </summary>
    public class MgDynamicFeatureRepository : MgFeatureRepository
    {
        private string _schemaName;
        private string _className;

        public MgDynamicFeatureRepository(string featureSourceId, MgFeatureService service, string schemaName, string className)
            : base(featureSourceId, service)
        {
            _schemaName = schemaName;
            _className = className;
        }

        public MgDynamicFeatureRepository(MgResourceIdentifier featureSourceId, MgFeatureService service, string schemaName, string className)
            : base(featureSourceId, service)
        {
            _schemaName = schemaName;
            _className = className;
        }

        protected override string GetSchemaName()
        {
            return _schemaName;
        }

        protected override string GetClassName()
        {
            return _className; 
        }
    }
}
